<ui:composition 
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:p="http://primefaces.org/ui">
    

     
    <!--
    <div class="fb-follow" style="float: right; width: 200px; "                     
        data-href="https://www.facebook.com/ventasimple" data-colorscheme="light" data-layout="standard" data-show-faces="true">      
    </div>
    -->
    
    <ui:repeat value="#{aplicationBean.publicidad}" var="p"> 
        
        <div style="position: relative;float: right; clear: both; width: 200px; min-height:100px; height: auto; margin-bottom: 10px; ">            
            
            <p:media value="#{p.pathArchivo}" width="200" player="flash" rendered="#{p.tipo eq 'F'}"/>

            <h:panelGroup layout="block" rendered="#{p.tipo eq 'H'}" >
                <h:outputText value="#{p.codigoHTML}" escape="false" />                      
            </h:panelGroup>
        
            <p:imageSwitch  effect="fade" id="fadeEffect" slideshowSpeed="5000" speed="1500" rendered="#{p.tipo eq 'S'}">
                <ui:repeat value="#{p.imagenes}" var="i" id="fadeEffectImages">
                    <p:graphicImage width="200" url="#{i.pathImagen}" id="image" />
                </ui:repeat>
            </p:imageSwitch>
        </div>        
        
        
    </ui:repeat>  
   
</ui:composition>
